package api04a;

import java.io.File;
import java.io.IOException;

public class FileDemo {
    public static void main(String[] args) throws IOException {
        File file = new File("./demo.txt");
        if(!file.exists()){
            file.createNewFile();
        }

        String name = file.getName();
        long len = file.length();
        boolean cr = file.canRead();
        boolean cw = file.canWrite();
        boolean ih = file.isHidden();

    }
}
